//: reusing/Orc.java
// The protected keyword.
package chapter7;

import static utility.Print.*;

import java.util.ArrayList;
import java.util.Arrays;

import simple.*;

/**
 * 
 * Exercise 22: (1) Create a final class and attempt to inherit from it.
 * 
 * @author rDiaconescu
 * 
 */

final class OrigClass {
	public final void printGreeting() {
		print("Original greeting");
	}
}
//This is not allowed
//class ExtClass extends OrigClass{
/*	public void printGreeting() {
		print("Extended greeting");
	}*/
//}

public class Exercise21 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
/*		ExtClass e = new ExtClass();
		
		e.printGreeting();
*/		
	}
}